package com.cz.run.beans.mysql;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户交易记录
 * </p>
 *
 * @author CAIYJ
 * @since 2018-05-23
 */
@TableName("user_trade_record")
public class UserTradeRecord extends Model<UserTradeRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("user_id")
    private Integer userId;
    /**
     * 积分
     */
    private Double point;
    /**
     * 地址
     */
    private String address;
    /**
     * 交易时间
     */
    @TableField("trade_time")
    private Date tradeTime;
    /**
     * 注册赠送、兑换消费、提币消费、转账消费
     */
    private String type;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getPoint() {
        return point;
    }

    public void setPoint(Double point) {
        this.point = point;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getTradeTime() {
        return tradeTime;
    }

    public void setTradeTime(Date tradeTime) {
        this.tradeTime = tradeTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserTradeRecord{" +
        ", id=" + id +
        ", userId=" + userId +
        ", point=" + point +
        ", address=" + address +
        ", tradeTime=" + tradeTime +
        ", type=" + type +
        ", createTime=" + createTime +
        "}";
    }
}
